from flask import Blueprint, render_template
from constant.constant import noteList, videoList

front = Blueprint('front', __name__, url_prefix='/front')


@front.route('/index')
def frontIndex():
    return render_template('front/index.html')

@front.route('/book')
def frontBook():
    return render_template('front/book.html', noteList = noteList)

@front.route('/video')
def frontVideo():
    return render_template('front/video.html', videoList = videoList)

@front.route('/note')
def frontNote():
    return render_template('front/note.html', noteList = noteList)

@front.route('/tool')
def frontTool():
    return render_template('front/tool.html')

@front.route('/service')
def frontService():
    return render_template('front/service.html')

@front.route('/insight')
def frontInsight():
    return render_template('front/insight.html')

@front.route('/forum')
def frontForum():
    return render_template('front/forum.html')

@front.route('/about')
def frontAbout():
    return render_template('front/about.html')